﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="CRM.Web.Test.Test" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<%@ Register src="testUserControl.ascx" tagname="testUserControl" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />

    <script src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $('#btnMessage').bind("click", function() {
                var txt = $('#inputMessage').val();
                $.ajax({
                    type: "POST",   //访问WebService使用Post方式请求
                    contentType: "application/json", //WebService 会返回Json类型
                    url: "../service/webservicetest.asmx/Test", //调用WebService的地址和方法名称组合---WsURL/方法名
                    data: "{str:'" + txt + "'}",
                    dataType: 'json',
                    success: function(result) {     //回调函数，result，返回值
                        $('#divMessage').html(result.d);
                        //alert(result.d);
                    },
                    error: function(x, e) {
                        //alert(x.responseText);
                    },
                    complete: function(x) {
                        //alert(x.responseText);
                    }
                });
            });
        });
    </script>
    
    
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="mainTable" class="bg">
    11111111111111111
    </div>
    <div style="width: 100%;">
     
    </div>
    <div>
    
    
    <uc1:testUserControl ID="testUserControl1" runat="server" />
    <br />
    <input id="inputMessage" type="text" /><br />
    <input type="button" id="btnMessage" value="OK" />  <br />
    <div id="divMessage"></div><br />
        <asp:RadioButton ID="rbAAA1" runat="server" GroupName="rbAAA"  />
        <asp:RadioButton ID="rbAAA2" runat="server" GroupName="rbAAA" Checked="true"  />
        <asp:RadioButton ID="rbAAA3" runat="server" GroupName="rbAAA"  />
        <asp:RadioButton ID="rbAAA4" runat="server" GroupName="rbAAA"  />
    </div>
    </form>
</body>
</html>
